package ch01.command;

/**
 * Created by zc on 2016/11/20.
 */
public class ConcreateCommand1 extends Command {

    private Receiver receiver;

    public ConcreateCommand1(){
        this.receiver = new Receiver1();
    }

    public ConcreateCommand1(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void excute() {
        this.receiver.doSomething();
    }
}
